# -*- coding:utf-8 -*- 

import gevent

__all__ = [
    'Application',
    ]

class Application(object):
    def __init__(self, *servers):
        self._servers = servers

    def run(self):
        jobs = [gevent.spawn(server.serve_forever) for server in self._servers]
        gevent.joinall(jobs)

